package com.neuedu.service.impl;

import com.neuedu.bean.Business;
import com.neuedu.mapper.BusinessMapper;
import com.neuedu.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {
    @Autowired
    private BusinessMapper businessMapper;
    @Override
    public List<Business> listBusinessByOrderTypeId(String orderTypeId) throws Exception {
        return businessMapper.listBusinessByOrderTypeId(orderTypeId);
    }

    @Override
    public Business getBusinessById(String businessId) throws Exception {
        return businessMapper.getBusinessById(Integer.parseInt(businessId));
    }
}
